<script>
export default {
  name: 'home component',
  created() {
    console.log( 'Home组件被创建' );
  },
  updated() {
    console.log( 'Home组件已经被更新', document.title );
  },
  unmounted() {
    console.log( 'Home组件被卸载' );
  },
  beforeRouteEnter(to, from) {
    console.log( 'Home beforeRouteEnter - from:', from );
    console.log( 'Home beforeRouteEnter - to:', to );
  },
  beforeRouteUpdate(to, from) {
    console.log( 'Home beforeRouteUpdate - from:', from );
    console.log( 'Home beforeRouteUpdate - to:', to );
  },
  beforeRouteLeave(to, from) {
    console.log( 'Home beforeRouteLeave - from:', from );
    console.log( 'Home beforeRouteLeave - to:', to );
  }
}
</script>

<template>
  <div>HOME</div>
</template>